/*
 * @Description: 
 * @Author: yyh
 * @Date: 2022-03-31 23:21:39
 * @LastEditors: yyh
 * @LastEditTime: 2022-05-16 01:58:49
 */
var express = require("express");
var router = express.Router();
var maintenance = require("../controllers/maintenanceController");

//新增资产维修接口
router.post("/addMaintenanceInfo",maintenance.addMaintenanceInfo);
//修改资产维修接口
router.post("/updateMaintenanceInfo",maintenance.updateMaintenanceInfo);
//修改资产维修状态接口
router.post("/updateMaintenanceStatus",maintenance.updateMaintenanceStatus);
//删除资产维修接口
router.get("/deleteMaintenance",maintenance.deleteMaintenance);
//模糊查询、分页查询资产维修接口
router.get("/getMaintenanceInfo",maintenance.getMaintenanceInfo);
//通过id查询资产维修信息接口
router.get("/getMaintenanceInfoById",maintenance.getMaintenanceInfoById);

module.exports = router;